package cn.edu.scau.cmi.wujiaxian.exercise9;

import java.util.Scanner;

public class Example9_11 {
	

	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String str = scanner.nextLine();
		String regex = "[\\s\\d\\p{Punct}]+";
		String words[] = str.split(regex);
		for (String word : words) {
			System.out.println(word);
		}
	}
	
}
